Optimal. Leaf size=285 \[ \frac {4 B \text {Li}_2\left (\frac {(d f-c g) (a+b x)}{(b f-a g) (c+d x)}\right ) \left (B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )+A\right )}{g}+\frac {\log \left (1-\frac {(a+b x) (d f-c g)}{(c+d x) (b f-a g)}\right ) \left (B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )+A\right )^2}{g}-\frac {4 B \text {Li}_2\left (\frac {d (a+b x)}{b (c+d x)}\right ) \left (B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )+A\right )}{g}-\frac {\log \left (\frac {b c-a d}{b (c+d x)}\right ) \left (B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )+A\right )^2}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {(d f-c g) (a+b x)}{(b f-a g) (c+d x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (\frac {d (a+b x)}{b (c+d x)}\right )}{g} \]
[Out]
________________________________________________________________________________________
Rubi [B] time = 5.85, antiderivative size = 2126, normalized size of antiderivative = 7.46, number of steps used = 44, number of rules used = 21, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.677, Rules used = {2524, 12, 2528, 2418, 2390, 2301, 2394, 2393, 2391, 6688, 6742, 2500, 2433, 2375, 2317, 2374, 6589, 2440, 2437, 2435, 2315} \[ \text {result too large to display} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2301
Rule 2315
Rule 2317
Rule 2374
Rule 2375
Rule 2390
Rule 2391
Rule 2393
Rule 2394
Rule 2418
Rule 2433
Rule 2435
Rule 2437
Rule 2440
Rule 2500
Rule 2524
Rule 2528
Rule 6589
Rule 6688
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2}{f+g x} \, dx &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(2 B) \int \frac {(c+d x)^2 \left (-\frac {2 d e (a+b x)^2}{(c+d x)^3}+\frac {2 b e (a+b x)}{(c+d x)^2}\right ) \left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{e (a+b x)^2} \, dx}{g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(2 B) \int \frac {(c+d x)^2 \left (-\frac {2 d e (a+b x)^2}{(c+d x)^3}+\frac {2 b e (a+b x)}{(c+d x)^2}\right ) \left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{(a+b x)^2} \, dx}{e g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(2 B) \int \frac {2 (b c-a d) e \left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{(a+b x) (c+d x)} \, dx}{e g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(4 B (b c-a d)) \int \frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{(a+b x) (c+d x)} \, dx}{g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(4 B (b c-a d)) \int \left (\frac {b \left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{(b c-a d) (a+b x)}-\frac {d \left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{(b c-a d) (c+d x)}\right ) \, dx}{g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(4 b B) \int \frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{a+b x} \, dx}{g}+\frac {(4 B d) \int \frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{c+d x} \, dx}{g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(4 b B) \int \left (\frac {A \log (f+g x)}{a+b x}+\frac {B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right ) \log (f+g x)}{a+b x}\right ) \, dx}{g}+\frac {(4 B d) \int \left (\frac {A \log (f+g x)}{c+d x}+\frac {B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right ) \log (f+g x)}{c+d x}\right ) \, dx}{g}\\ &=\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}-\frac {(4 A b B) \int \frac {\log (f+g x)}{a+b x} \, dx}{g}-\frac {\left (4 b B^2\right ) \int \frac {\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right ) \log (f+g x)}{a+b x} \, dx}{g}+\frac {(4 A B d) \int \frac {\log (f+g x)}{c+d x} \, dx}{g}+\frac {\left (4 B^2 d\right ) \int \frac {\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right ) \log (f+g x)}{c+d x} \, dx}{g}\\ &=-\frac {4 A B \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \log (f+g x)}{g}+\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}+\frac {4 A B \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}+(4 A B) \int \frac {\log \left (\frac {g (a+b x)}{-b f+a g}\right )}{f+g x} \, dx-(4 A B) \int \frac {\log \left (\frac {g (c+d x)}{-d f+c g}\right )}{f+g x} \, dx-\frac {\left (4 b B^2\right ) \int \frac {\log \left ((a+b x)^2\right ) \log (f+g x)}{a+b x} \, dx}{g}-\frac {\left (4 b B^2\right ) \int \frac {\log \left (\frac {1}{(c+d x)^2}\right ) \log (f+g x)}{a+b x} \, dx}{g}+\frac {\left (4 B^2 d\right ) \int \frac {\log \left ((a+b x)^2\right ) \log (f+g x)}{c+d x} \, dx}{g}+\frac {\left (4 B^2 d\right ) \int \frac {\log \left (\frac {1}{(c+d x)^2}\right ) \log (f+g x)}{c+d x} \, dx}{g}-\frac {\left (4 b B^2 \left (-\log \left ((a+b x)^2\right )-\log \left (\frac {1}{(c+d x)^2}\right )+\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )\right ) \int \frac {\log (f+g x)}{a+b x} \, dx}{g}+\frac {\left (4 B^2 d \left (-\log \left ((a+b x)^2\right )-\log \left (\frac {1}{(c+d x)^2}\right )+\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )\right ) \int \frac {\log (f+g x)}{c+d x} \, dx}{g}\\ &=-\frac {4 A B \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \log (f+g x)}{g}+\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{g}+\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}+\frac {4 A B \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}+\frac {(4 A B) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {b x}{-b f+a g}\right )}{x} \, dx,x,f+g x\right )}{g}-\frac {(4 A B) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {d x}{-d f+c g}\right )}{x} \, dx,x,f+g x\right )}{g}-\frac {\left (4 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (x^2\right ) \log \left (\frac {b f-a g}{b}+\frac {g x}{b}\right )}{x} \, dx,x,a+b x\right )}{g}-\frac {\left (4 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (\frac {1}{\left (-\frac {-b c+a d}{b}+\frac {d x}{b}\right )^2}\right ) \log \left (-\frac {-b f+a g}{b}+\frac {g x}{b}\right )}{x} \, dx,x,a+b x\right )}{g}+\frac {\left (4 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (\frac {1}{x^2}\right ) \log \left (\frac {d f-c g}{d}+\frac {g x}{d}\right )}{x} \, dx,x,c+d x\right )}{g}+\frac {\left (4 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (\left (-\frac {b c-a d}{d}+\frac {b x}{d}\right )^2\right ) \log \left (-\frac {-d f+c g}{d}+\frac {g x}{d}\right )}{x} \, dx,x,c+d x\right )}{g}+\left (4 B^2 \left (-\log \left ((a+b x)^2\right )-\log \left (\frac {1}{(c+d x)^2}\right )+\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )\right ) \int \frac {\log \left (\frac {g (a+b x)}{-b f+a g}\right )}{f+g x} \, dx-\left (4 B^2 \left (-\log \left ((a+b x)^2\right )-\log \left (\frac {1}{(c+d x)^2}\right )+\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )\right ) \int \frac {\log \left (\frac {g (c+d x)}{-d f+c g}\right )}{f+g x} \, dx\\ &=-\frac {4 A B \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log (f+g x)}{g}+\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{g}+\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}+\frac {4 A B \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 A B \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 A B \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {B^2 \operatorname {Subst}\left (\int \frac {\log ^2\left (x^2\right )}{\frac {b f-a g}{b}+\frac {g x}{b}} \, dx,x,a+b x\right )}{b}+\frac {B^2 \operatorname {Subst}\left (\int \frac {\log ^2\left (\frac {1}{x^2}\right )}{\frac {d f-c g}{d}+\frac {g x}{d}} \, dx,x,c+d x\right )}{d}+\frac {\left (8 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-b c+a d}{b}+\frac {d x}{b}\right ) \log \left (-\frac {-b f+a g}{b}+\frac {g x}{b}\right )}{x} \, dx,x,a+b x\right )}{g}+\frac {\left (8 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {b c-a d}{d}+\frac {b x}{d}\right ) \log \left (-\frac {-d f+c g}{d}+\frac {g x}{d}\right )}{x} \, dx,x,c+d x\right )}{g}-\frac {\left (4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-d f+c g}{d}+\frac {g x}{d}\right )}{x} \, dx,x,c+d x\right )}{g}+\frac {\left (4 B^2 \left (-\log \left ((a+b x)^2\right )-\log \left (\frac {1}{(c+d x)^2}\right )+\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {b x}{-b f+a g}\right )}{x} \, dx,x,f+g x\right )}{g}-\frac {\left (4 B^2 \left (-\log \left ((a+b x)^2\right )-\log \left (\frac {1}{(c+d x)^2}\right )+\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {d x}{-d f+c g}\right )}{x} \, dx,x,f+g x\right )}{g}+\frac {\left (4 B^2 \left (-\log \left (\frac {1}{(c+d x)^2}\right )-2 \log (c+d x)\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {-b f+a g}{b}+\frac {g x}{b}\right )}{x} \, dx,x,a+b x\right )}{g}\\ &=-\frac {4 A B \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log (f+g x)}{g}+\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{g}+\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}+\frac {8 B^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x) \log (f+g x)}{g}-\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left (\frac {1}{(c+d x)^2}\right )+2 \log (c+d x)\right ) \log (f+g x)}{g}+\frac {8 B^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right ) \log (f+g x)}{g}+\frac {4 A B \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}+\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log \left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log \left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {4 B^2 \left (\log \left (\frac {b (c+d x)}{b c-a d}\right )+\log \left (\frac {b f-a g}{b (f+g x)}\right )-\log \left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )\right ) \log ^2\left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )}{g}-\frac {4 B^2 \left (\log \left (\frac {b (c+d x)}{b c-a d}\right )-\log \left (-\frac {g (c+d x)}{d f-c g}\right )\right ) \left (\log (a+b x)+\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right )^2}{g}+\frac {4 B^2 \left (\log \left (-\frac {d (a+b x)}{b c-a d}\right )+\log \left (\frac {d f-c g}{d (f+g x)}\right )-\log \left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )\right ) \log ^2\left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )}{g}-\frac {4 B^2 \left (\log \left (-\frac {d (a+b x)}{b c-a d}\right )-\log \left (-\frac {g (a+b x)}{b f-a g}\right )\right ) \left (\log (c+d x)+\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right )^2}{g}+\frac {8 B^2 \left (\log (f+g x)-\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right ) \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{g}+\frac {8 B^2 \left (\log (f+g x)-\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right ) \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{g}-\frac {8 B^2 \log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right ) \text {Li}_2\left (\frac {g (a+b x)}{b (f+g x)}\right )}{g}+\frac {8 B^2 \log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right ) \text {Li}_2\left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right ) \text {Li}_2\left (\frac {g (c+d x)}{d (f+g x)}\right )}{g}+\frac {8 B^2 \log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right ) \text {Li}_2\left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {4 A B \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {8 B^2 \left (\log (c+d x)+\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 A B \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {8 B^2 \left (\log (a+b x)+\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (-\frac {d (a+b x)}{b c-a d}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {b (c+d x)}{b c-a d}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {g (a+b x)}{b (f+g x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {g (c+d x)}{d (f+g x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {b (f+g x)}{b f-a g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {\left (4 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (x^2\right ) \log \left (1+\frac {g x}{b f-a g}\right )}{x} \, dx,x,a+b x\right )}{g}+\frac {\left (4 B^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (\frac {1}{x^2}\right ) \log \left (1+\frac {g x}{d f-c g}\right )}{x} \, dx,x,c+d x\right )}{g}+\frac {\left (4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (\frac {g x}{-d f+c g}\right )}{-\frac {-d f+c g}{d}+\frac {g x}{d}} \, dx,x,c+d x\right )}{d}-\frac {\left (4 B^2 \left (-\log \left (\frac {1}{(c+d x)^2}\right )-2 \log (c+d x)\right )\right ) \operatorname {Subst}\left (\int \frac {\log \left (\frac {g x}{-b f+a g}\right )}{-\frac {-b f+a g}{b}+\frac {g x}{b}} \, dx,x,a+b x\right )}{b}\\ &=-\frac {4 A B \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log (f+g x)}{g}+\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{g}+\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}+\frac {8 B^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x) \log (f+g x)}{g}-\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left (\frac {1}{(c+d x)^2}\right )+2 \log (c+d x)\right ) \log (f+g x)}{g}+\frac {8 B^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right ) \log (f+g x)}{g}+\frac {4 A B \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}+\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log \left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log \left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {4 B^2 \left (\log \left (\frac {b (c+d x)}{b c-a d}\right )+\log \left (\frac {b f-a g}{b (f+g x)}\right )-\log \left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )\right ) \log ^2\left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )}{g}-\frac {4 B^2 \left (\log \left (\frac {b (c+d x)}{b c-a d}\right )-\log \left (-\frac {g (c+d x)}{d f-c g}\right )\right ) \left (\log (a+b x)+\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right )^2}{g}+\frac {4 B^2 \left (\log \left (-\frac {d (a+b x)}{b c-a d}\right )+\log \left (\frac {d f-c g}{d (f+g x)}\right )-\log \left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )\right ) \log ^2\left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )}{g}-\frac {4 B^2 \left (\log \left (-\frac {d (a+b x)}{b c-a d}\right )-\log \left (-\frac {g (a+b x)}{b f-a g}\right )\right ) \left (\log (c+d x)+\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right )^2}{g}+\frac {8 B^2 \left (\log (f+g x)-\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right ) \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{g}+\frac {4 B^2 \log \left ((a+b x)^2\right ) \text {Li}_2\left (-\frac {g (a+b x)}{b f-a g}\right )}{g}+\frac {8 B^2 \left (\log (f+g x)-\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right ) \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{g}-\frac {4 B^2 \log \left (\frac {1}{(c+d x)^2}\right ) \text {Li}_2\left (-\frac {g (c+d x)}{d f-c g}\right )}{g}-\frac {8 B^2 \log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right ) \text {Li}_2\left (\frac {g (a+b x)}{b (f+g x)}\right )}{g}+\frac {8 B^2 \log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right ) \text {Li}_2\left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right ) \text {Li}_2\left (\frac {g (c+d x)}{d (f+g x)}\right )}{g}+\frac {8 B^2 \log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right ) \text {Li}_2\left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {4 A B \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}-\frac {4 B^2 \left (\log \left (\frac {1}{(c+d x)^2}\right )+2 \log (c+d x)\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {8 B^2 \left (\log (c+d x)+\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 A B \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {8 B^2 \left (\log (a+b x)+\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (-\frac {d (a+b x)}{b c-a d}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {b (c+d x)}{b c-a d}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {g (a+b x)}{b (f+g x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {g (c+d x)}{d (f+g x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {b (f+g x)}{b f-a g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {\left (8 B^2\right ) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {g x}{b f-a g}\right )}{x} \, dx,x,a+b x\right )}{g}-\frac {\left (8 B^2\right ) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {g x}{d f-c g}\right )}{x} \, dx,x,c+d x\right )}{g}\\ &=-\frac {4 A B \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log (f+g x)}{g}-\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log (f+g x)}{g}+\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log (f+g x)}{g}+\frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2 \log (f+g x)}{g}+\frac {8 B^2 \log \left (-\frac {d (a+b x)}{b c-a d}\right ) \log (c+d x) \log (f+g x)}{g}-\frac {4 B^2 \log \left (-\frac {g (a+b x)}{b f-a g}\right ) \left (\log \left (\frac {1}{(c+d x)^2}\right )+2 \log (c+d x)\right ) \log (f+g x)}{g}+\frac {8 B^2 \log (a+b x) \log \left (\frac {b (c+d x)}{b c-a d}\right ) \log (f+g x)}{g}+\frac {4 A B \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \log \left (-\frac {g (c+d x)}{d f-c g}\right ) \log (f+g x)}{g}+\frac {B^2 \log ^2\left ((a+b x)^2\right ) \log \left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {B^2 \log ^2\left (\frac {1}{(c+d x)^2}\right ) \log \left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {4 B^2 \left (\log \left (\frac {b (c+d x)}{b c-a d}\right )+\log \left (\frac {b f-a g}{b (f+g x)}\right )-\log \left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )\right ) \log ^2\left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )}{g}-\frac {4 B^2 \left (\log \left (\frac {b (c+d x)}{b c-a d}\right )-\log \left (-\frac {g (c+d x)}{d f-c g}\right )\right ) \left (\log (a+b x)+\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right )^2}{g}+\frac {4 B^2 \left (\log \left (-\frac {d (a+b x)}{b c-a d}\right )+\log \left (\frac {d f-c g}{d (f+g x)}\right )-\log \left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )\right ) \log ^2\left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )}{g}-\frac {4 B^2 \left (\log \left (-\frac {d (a+b x)}{b c-a d}\right )-\log \left (-\frac {g (a+b x)}{b f-a g}\right )\right ) \left (\log (c+d x)+\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right )^2}{g}+\frac {8 B^2 \left (\log (f+g x)-\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right ) \text {Li}_2\left (-\frac {d (a+b x)}{b c-a d}\right )}{g}+\frac {4 B^2 \log \left ((a+b x)^2\right ) \text {Li}_2\left (-\frac {g (a+b x)}{b f-a g}\right )}{g}+\frac {8 B^2 \left (\log (f+g x)-\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right ) \text {Li}_2\left (\frac {b (c+d x)}{b c-a d}\right )}{g}-\frac {4 B^2 \log \left (\frac {1}{(c+d x)^2}\right ) \text {Li}_2\left (-\frac {g (c+d x)}{d f-c g}\right )}{g}-\frac {8 B^2 \log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right ) \text {Li}_2\left (\frac {g (a+b x)}{b (f+g x)}\right )}{g}+\frac {8 B^2 \log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right ) \text {Li}_2\left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right ) \text {Li}_2\left (\frac {g (c+d x)}{d (f+g x)}\right )}{g}+\frac {8 B^2 \log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right ) \text {Li}_2\left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {4 A B \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}-\frac {4 B^2 \left (\log \left (\frac {1}{(c+d x)^2}\right )+2 \log (c+d x)\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {8 B^2 \left (\log (c+d x)+\log \left (\frac {(b c-a d) (f+g x)}{(b f-a g) (c+d x)}\right )\right ) \text {Li}_2\left (\frac {b (f+g x)}{b f-a g}\right )}{g}+\frac {4 A B \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {4 B^2 \left (2 \log (a+b x)-\log \left ((a+b x)^2\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {4 B^2 \left (\log \left ((a+b x)^2\right )+\log \left (\frac {1}{(c+d x)^2}\right )-\log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}+\frac {8 B^2 \left (\log (a+b x)+\log \left (-\frac {(b c-a d) (f+g x)}{(d f-c g) (a+b x)}\right )\right ) \text {Li}_2\left (\frac {d (f+g x)}{d f-c g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (-\frac {d (a+b x)}{b c-a d}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (-\frac {g (a+b x)}{b f-a g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {b (c+d x)}{b c-a d}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (-\frac {g (c+d x)}{d f-c g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {g (a+b x)}{b (f+g x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (-\frac {(d f-c g) (a+b x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {g (c+d x)}{d (f+g x)}\right )}{g}+\frac {8 B^2 \text {Li}_3\left (\frac {(b f-a g) (c+d x)}{(b c-a d) (f+g x)}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {b (f+g x)}{b f-a g}\right )}{g}-\frac {8 B^2 \text {Li}_3\left (\frac {d (f+g x)}{d f-c g}\right )}{g}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 2.30, size = 0, normalized size = 0.00 \[ \int \frac {\left (A+B \log \left (\frac {e (a+b x)^2}{(c+d x)^2}\right )\right )^2}{f+g x} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.80, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {B^{2} \log \left (\frac {b^{2} e x^{2} + 2 \, a b e x + a^{2} e}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )^{2} + 2 \, A B \log \left (\frac {b^{2} e x^{2} + 2 \, a b e x + a^{2} e}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) + A^{2}}{g x + f}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \log \left (\frac {{\left (b x + a\right )}^{2} e}{{\left (d x + c\right )}^{2}}\right ) + A\right )}^{2}}{g x + f}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.06, size = 0, normalized size = 0.00 \[ \int \frac {\left (B \ln \left (\frac {\left (b x +a \right )^{2} e}{\left (d x +c \right )^{2}}\right )+A \right )^{2}}{g x +f}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {A^{2} \log \left (g x + f\right )}{g} - \int -\frac {4 \, B^{2} \log \left (b x + a\right )^{2} + B^{2} \log \relax (e)^{2} + 2 \, A B \log \relax (e) + 4 \, {\left (B^{2} \log \relax (e) + A B\right )} \log \left (b x + a\right ) - 4 \, {\left (2 \, B^{2} \log \left (b x + a\right ) + B^{2} \log \relax (e) + A B\right )} \log \left (d x + c\right )}{g x + f}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^2}{{\left (c+d\,x\right )}^2}\right )\right )}^2}{f+g\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (A + B \log {\left (\frac {a^{2} e}{c^{2} + 2 c d x + d^{2} x^{2}} + \frac {2 a b e x}{c^{2} + 2 c d x + d^{2} x^{2}} + \frac {b^{2} e x^{2}}{c^{2} + 2 c d x + d^{2} x^{2}} \right )}\right )^{2}}{f + g x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________